import { createRouter, createWebHistory } from 'vue-router';
import HomeView from '../views/HomeView.vue';
import HelloWorld from "../components/HelloWorld.vue";

const routes = [
    { path: '/', component: HomeView },
    { path: '/HelloWorld', component: HelloWorld },
    { path: '/about', component: () => import('../views/AboutView.vue') } // 懒加载
];

export default createRouter({
    history: createWebHistory(),
    routes
});
